<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
--%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<link rel="stylesheet" href="../css/Styleadmin.css" type="text/css" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Result Declaration Board</title>
    </head>
    <body>
        <center>
            <div id="main">
                <div id="banner">Banner</div>
                <%if(session.getAttribute("un")!=null){
                %>
                <div id="menu_horizontal">
                    <label>Hello! <%=session.getAttribute("un").toString()%></label> 
                    <a href="indexAdmin.jsp?page=Admin&url=ChangePassword">Change Password</a>
                    <a href="indexAdmin.jsp?page=Admin&url=ResetPassword">Reset Password</a>
                    <a href="indexAdmin.jsp?page=Admin&url=Login">Logout</a>
                </div>
                <%}else{%>
                <div id="menu_horizontal"><a href="indexAdmin.jsp?page=Admin&url=Login">login</a></div>
                <%}%>
                <div id="mleft">
                    <a href="#"><div id="buttonhome"></div></a>
                    <div id="line_img"></div>
                    <a href="indexAdmin.jsp?page=Admin&url=user"><div id="button_user"></div></a>
                    <a href="indexAdmin.jsp?page=Admin&url=Student"><div id="button_Student"></div></a>
                    <a href="indexAdmin.jsp?page=Admin&url=Curriculum"><div id="button_curlli"></div></a>                    
                    <a href="indexAdmin.jsp?page=Admin&url=Subject"><div id="button_subject"></div></a>
                    <a href="indexAdmin.jsp?page=Admin&url=ExamMark"><div id="button_exam"></div></a>
                    <a href="indexAdmin.jsp?page=Admin&url=Schedules"><div id="button_schedule"></div></a>
                    <a href="indexAdmin.jsp?page=Admin&url=ReRegistration"><div id="button_reigs"></div></a>
                    <div id="button_nen"></div>
                    
                </div>
                <div id="content">
                    <%
                    if(request.getParameter("page")!= null) {
                    if(request.getParameter("page").equals("Admin")) {
                        String U=request.getParameter("url");
                        String str=U+".jsp";
                    %>
                    <tr><td><jsp:include page="<%=str%>"/></td></tr>
                    <%
                    }
                    } else {
                    %>
                    <tr><td><jsp:include page="Login.jsp"/></td></tr>
                    <%
                    }
                    %>
                </div>
                <div id="footer">Copyright c Result Declaration Board<br>All right reserved version 1.0</div>
            </div>
        </center>
    </body>
</html>
